is in
Type
operator
Summary
Compares two strings and evaluates to true if the second contains the first, false if not.
Syntax
<subString> is in <string>
Description
Use the is in operator to find out whether a string contains a substring.
The expression
firstString is in secondString
is equivalent to
secondString contains firstString
The is in operator is the logical inverse of the is not in operator. When one is true, the other is false.
Parameters
Name | Type | Description |
---|---|---|
substring | string | The substring and string are both strings, or expressions that evaluate to strings. |
string | string |
Examples
"A" is in "ABC" -- evaluates to true
"123" is in "13" -- evaluates to false
Related
glossary: evaluate, string, operator
keyword: string
operator: is not in, contains, is among
Compatibility and Support
Introduced
LiveCode 1.0
OS
mac
windows
linux
ios
android
Platforms
desktop
server
mobile